<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateGoodsBrandsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('goods_brands', function (Blueprint $table) {
            $table->id();
            $table->string('name', 100)->comment('品牌名称');
            $table->string('icon', 255)->nullable()->comment('图标');
            $table->string('index_name', 20)->comment('索引首字母');
            $table->string('source', 255)->nullable()->comment('国家产地');
            $table->string('source_icon', 255)->nullable()->comment('产地图标');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('goods_brands');
    }
}
